package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.excel.CateExcelDto;
import com.atguigu.spzx.model.entity.product.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
//    @Select("SELECT")
    List<Category> selectByPid(Long parentId);

    Boolean hasChildren(Long id);

    void batchSave(List<CateExcelDto> cates);

    boolean exists(CateExcelDto data);

    List<CateExcelDto> selectAll();

    Category selectById(Long id);
}
